package com.yunshang.shoppingmall.service;

import com.yunshang.shoppingmall.entity.Role;

import java.util.List;

public interface RoleService {
    //删除权限根据
    int deleteByPrimaryKey(Integer roleId);
    //增加权限
    int insert(Role role);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    //根据用户ID删除角色
    int delByUserId(int userId);

    //查询用户角色
    List<Role> selectRoleByUserId(int userId);
    List<Role> selectList();
}
